//
//  HWMineModel.swift
//  HWanGame
//
//  Created by 王昌健 on 2021/12/22.
//  Copyright © 2021 94Wan. All rights reserved.
//

import UIKit
import HandyJSON
class HWMineModel: HandyJSON {
    required init() {}
    
    var user:HWMineUserModel!
//    var config:HWMineConfigModel!
//    var quanzi:HWMineQuanziModel!
//    var mygame:HWMineMygameModel!
    var nav:[HWMineNavModel]!
    var huiyuan:HWMineHuiYuanModel = HWMineHuiYuanModel()
    var shengqianka:HWMineShengQianKaModel = HWMineShengQianKaModel()
}
class HWMineHuiYuanModel: HandyJSON {
    required init() {}
    var exp = 0
    var last_exp = 0
    var vip = ""
    var last_vip = ""
    var bg = ""
    var icon = ""
    var url = ""
    var is_huiyuan = false
    var text = ""
    
}

class HWMineShengQianKaModel: HandyJSON {
    required init() {}
    
    var shengqianka = false
    var text = ""
    var bg = ""
    var day = ""
}

class HWMineUserModel: HandyJSON {
    required init() {}
    
    /// 用户名
    var user_name:String!
    /// 颜色
    var color:[String] = []
    /// 头像
    var face:String!
    /// 头像框
    var head_frame:String!
    /// 勋章
    var medal:String!
    /// 会员图片
    var huiyuan_img:String!
    /// 当前VIP等级，如果是0 显示未开通
    var vip:String!
    /// 是否为会员
    var is_huiyuan = false
    /// 代金券数量
    var coupon:String!
    /// 积分
    var point:String!
    /// 预约数量
    var yuyue:String!
    /// 平台币数量
    var coin:String!
    var notice:String!
    ///1已签到  0未签到
    var is_qiandao:Bool!
    var qiandao_day:String = ""
    
    
}
class HWMineConfigModel: HandyJSON {
    required init() {}
    
    /// 会员位置底部图片
    var huiyuan:String!
    /// 当前经验
    var exp:NSInteger!
    /// 下一等级经验，距离下一级剩余 需要该项减当前经验
    var last_exp:NSInteger!
    /// 当前等级
    var vip:String!
    /// 下一等级
    var last_vip:String!
    /// 会员链接，有代表未开通会员，访问该链接，没有代表已开通访问会员福利
    var huiyuan_url:String!
    /// 背景图
    var bgimg:String!
}
class HWMineQuanziModel: HandyJSON {
    required init() {}
    
    var icon:String!
    var lists:[HWMineListsModel]!
}
class HWMineListsModel: HandyJSON {
    required init() {}
    
    var id:String!
    var icon:String!
    var name:String!
    var login:String!
    var type:String!
    var url:String!
}
class HWMineMygameModel: HandyJSON {
    required init() {}
    
    var icon:String!
    var lists:[HWMineListsModel]!
}
class HWMineNavModel: HandyJSON {
    required init() {}
    
    var title = ""
    var data:[HWMineNavDataModel] = []
    
    
}
class HWMineNavDataModel: HandyJSON {
    required init() {}
    var name:String!
    var type:String!
    var icon:String!
    var login:String!
    var url:String!
    var gid = ""
}
